const mongoose = require('mongoose');

mongoose.connect("mongodb+srv://OneGroup:7TILEi9WV47Ge3Rv@cluster0.qpae4oq.mongodb.net/shop")

const conn = mongoose.connection;

conn.on("connected", () => {
  console.log("数据库连接成功");
});

conn.on("error", (err) => {
  console.log("数据库连接失败");
});

module.exports = mongoose;
